//
//  AddCustomerCell.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/4.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "AddCustomerCell.h"
#import "UIView+circular.h"
#import "StringTool.h"


@interface AddCustomerCell()<UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UIView *view1;
@property (weak, nonatomic) IBOutlet UIView *view2;
@property (weak, nonatomic) IBOutlet UIView *view3;
@property (weak, nonatomic) IBOutlet UIView *view4;
@property (weak, nonatomic) IBOutlet UIView *view5;

@end
@implementation AddCustomerCell

+(instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"addCustomerCell";
    
    AddCustomerCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        
        cell = [[[NSBundle mainBundle]loadNibNamed:@"AddCustomerCell" owner:nil options:nil]lastObject];

    }
    [cell.view1 viewmakeline];
    [cell.view2 viewmakeline];
    [cell.view3 viewmakeline];
    [cell.view4 viewmakeline];
    [cell.view5 viewmakeline];
    return cell;
}

-(void)setLatenModel:(CustomerModel *)latenModel
{
    if (![StringTool isBlankString:latenModel.consumerName]) {
        self.nameTextField.text = latenModel.consumerName;
    }
    if (![StringTool isBlankString:latenModel.consumerName]) {
        self.phoneTextField.text = latenModel.consumerMobile;
    }
    
}
+(CGFloat)getHeight
{
    return 368;
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField;
{
    [textField resignFirstResponder];
    return YES;
}
@end
